﻿using System.Collections.Generic;
using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{

    [XmlRoot("MESSAGE")]
    public class InventoryPalletDataReportMessage : BaseTibcoMessage<InventoryPalletDataReportMessageBody>
    {
        public InventoryPalletDataReportMessage()
        {

        }
        public InventoryPalletDataReportMessage(InventoryPalletDataReportMessageBody body, string inboxName = "", string listener = "") : base("InventoryPalletDataRequest", body, inboxName, listener)
        {
        }
    }


    public class InventoryPalletDataReportMessageBody : MachineEventBase
    {
        public InventoryPalletDataReportMessageBody()
        {
        }

        public InventoryPalletDataReportMessageBody(string machineName, List<Pallet> pallets)
        {
            MachineName = machineName;
            PalletList = new PalletList(pallets);
            EventUser = machineName;
        }

        [XmlElement("PALLETLIST")]
        public PalletList PalletList { get; set; }


    }
}
